import { _decorator, Component } from "cc";
import { eventDispatcher } from "../Constants";
const { ccclass } = _decorator;

@ccclass("AnimationClipEventHandler")
export class AnimationClipEventHandler extends Component {

    public onTrigger(eventName: string, ...params: any[]): void {
        eventDispatcher.emit(eventName, ...params);
    }

}